//
//  KFWMessageInputView.h
//  KWNClient
//
//  Created by 孔六五 on 15/1/5.
//  Copyright (c) 2015年 张明磊. All rights reserved.
//

#import <UIKit/UIKit.h>
#undef  HeightInputTop
#define HeightInputTop 44

typedef NS_ENUM(NSUInteger, KFWMessageInput)
{
    KFWMessageInputKeyboard = 0,
    KFWMessageInputVoice,
    KFWMessageInputSend,
    KFWMessageInputOptions,
    KFWMessageInputNone,
};

@class KFWRecordTouchButton;


@protocol KFWMessageInputViewDelegate;

@interface KFWMessageInputView : UIView<UITextViewDelegate>

@property (nonatomic,weak) UIViewController <KFWMessageInputViewDelegate>* delegate;

@property (nonatomic,strong) UITextView *messageTextView;
@property (nonatomic,strong) UIView *inputBackgroundView;
@property (nonatomic,strong) KFWRecordTouchButton *startRecordTouchButton;   //录音按钮
@property (nonatomic,strong) UIButton *button_send;              //发送按钮
@property (nonatomic,strong) UIButton *button_camera;              //相机
@property (nonatomic,strong) UIButton *button_photo;              //相册

@property (nonatomic,strong) UIButton *button_showOtherOptions;              //加号按钮点击显示选项的view
@property (nonatomic,strong) UIView *view_Options;                           //其它选项的view
@property (nonatomic,strong) UIView *view_inputTop;                          //输入控制view

@property (nonatomic,strong) UIView *view_inputOut;                              //
@property (nonatomic,strong) NSMutableArray *arr_imageDatafilePath;          //存储图片保存的地址

@property KFWMessageInput input;

+ (KFWMessageInputView *)creatKFWMessageInputViewWithFrame:(CGRect)inputframe delegate:(UIViewController <KFWMessageInputViewDelegate>*)delegate;
- (void)viewResignFirstResponder;
@end

@protocol KFWMessageInputViewDelegate <NSObject>

@optional

- (void)sendText:(KFWMessageInputView *)anMessageInputView;
- (void)sendImage:(KFWMessageInputView *)anMessageInputView;
- (void)sendVoice:(KFWMessageInputView *)anMessageInputView;
- (void)inputHeightChange:(KFWMessageInputView *)inputView height:(CGFloat)aheight;

@end

